require(["config"], function(config) {
	require(["jquery", "sw","ck"], function(jq, sw,cookie) {
		var pd=false;
		jq(".tit").click(function(){
			if(pd==false){
				jq(this).parent().parent().stop().animate({height:39});
				jq(this).css("background","url(img/images/jian.png) no-repeat 75px 49%");
				
				pd=true;
			}
			else{
				jq(this).parent().parent().stop().animate({height:145});
				jq(this).css("background","url(img/images/jia.png) no-repeat 75px 49%");
				pd=false;
			}
			
			
		})
		
		/**************选项切换1*******************/
		jq(function(){
			jq(".dd").children().each(function(index){
				if($(this).index() == 0) {
					jq(".dd li:eq(2)").css({"font-weight":"900","color":"red"})
					$(".first").children().eq(1).show().siblings().hide();
				}
				$(this).click(function(){
					
					jq(this).css({"font-weight":"900","color":"red"}).siblings().css({"font-weight":"100","color":"#545454"});
					jq(".zc li").css({"font-weight":"100","color":"#545454"});
					jq(".zh li").css({"font-weight":"100","color":"#545454"});
					if(index !== 0){
						jq(".first").show();
						jq(".second").hide();
						jq(".third").hide();
						jq(".first").children().eq(index-1).show().siblings().hide();
					}
				})
				
			});
		})
		
		
		
		/**************选项切换2*******************/
		
		jq(function(){
			jq(".zc").children().each(function(index){
				
				$(this).click(function(){
					
					jq(this).css({"font-weight":"900","color":"red"}).siblings().css({"font-weight":"100","color":"#545454"});
					jq(".zh li").css({"font-weight":"100","color":"#545454"});
					jq(".dd li").css({"font-weight":"100","color":"#545454"});
					if(index !== 0){
						jq(".first").hide();
						jq(".second").show();
						jq(".third").hide();
						jq(".second").children().eq(index-1).show().siblings().hide();
					}
				})
				
			});
		})
		/**************选项切换3*******************/
		jq(function(){
			jq(".zh").children().each(function(index){
				
				//console.log(index)
				$(this).click(function(){
					//console.log(jq(".third").children())
					jq(this).css({"font-weight":"900","color":"red"}).siblings().css({"font-weight":"100","color":"#545454"});
					jq(".zc li").css({"font-weight":"100","color":"#545454"});
					jq(".dd li").css({"font-weight":"100","color":"#545454"});
					if(index !== 0){
						jq(".first").hide();
						jq(".third").show();
						jq(".second").hide();
						jq(".third").children().eq(index-1).show().siblings().hide();
						
						
					}
				})
				
			});
		})
		
	});
})